<form method="post" action="usergallery">
<table width="100%" border="0" cellpadding="2" cellspacing="0">
  <tr>
    <td>%gallery_name%:</td>
    <td><input type="text" name="name" value="$name" /></td>
  </tr>
  <tr>
    <td>%group%:</td>
    <td>%user_gallery%</td>
  </tr>
  <tr>
    <td><input type="hidden" name="galleryID" value="$galleryID" /></td>
    <td><input type="submit" name="saveedit" value="%update%" /></td>
  </tr>
</table>
</form>